<template>
    <router-view/>
</template>

<script setup lang="ts">
import useSettingsStore from '@/store/modules/settings';
import { handleThemeStyle } from '@/utils/theme';
import { nextTick, onMounted, ref } from 'vue';

onMounted(() => {
    nextTick(() => {
        // 初始化主题样式
        handleThemeStyle(useSettingsStore().theme);
    });
});
// import { provide } from 'vue';
//
// const isRouterActive = ref(true);
// provide('reload', () => {
//     isRouterActive.value = false;
//     nextTick(() => {
//         isRouterActive.value = true;
//     });
// });
</script>
